package ustc.xiaoyang.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 员工分页查询DTO，接收前端参数
 */
@Data
@AllArgsConstructor
public class EmpPageQueryDTO {
    private String name;
    private Short gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;
    private Integer page;
    private Integer pageSize;
}
